package com.zhanghe.study.study_scala.basic

/**
 * 输出的三种方式
 *
 * @author zh
 * @date 2021/4/26 15:53
 */
object TestPrint {
  def main(args: Array[String]): Unit = {
    // 1
    val str1: String = "hello"
    val str2: String = " World"
    println(str1 + str2)
    // 2
    var age: Int = 10
    var name: String = "张三"
    printf("name:%s,age:%d", name, age)
    println()
    // 3
    println(s"name: $name")

  }

}
